<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>textarea与input字体大小等不一致的问题.html</title>

    <!-- <link rel="stylesheet" href="../css/reset1.css"> -->
    <!-- <link rel="stylesheet" href="../css/reset.css"> -->
    <link rel="stylesheet" href="../css/style.css">

    <style>
        *{
            box-sizing: border-box;
        }
        .wrap{
          width: 80%;
          height: 400px;
          border: 1px solid #ddd;
           
        }
        .inputBox,#textareaBox{
            border: 1px solid #95B8E7;
            display: block;
            margin: 20px 10px;
            overflow: hidden; 
        }
        .inputBox{
            height: 34px;
            width: 200px;
            text-indent: 5px;
        }
        #textareaBox{
            width: 200px;
            height: 200px;
            resize: none;
            text-indent: 5px;
            padding-top: 10px;
            /*font-size: 14px;*/
        }
    </style>

</head>
<body>
    
    <div class="wrap">
        
        <input type="text" class="inputBox" placeholder="请输入..."/>


        <textarea name="" id="textareaBox" cols="30" rows="10" placeholder="请输入内容..."></textarea>

    </div>

</body>
</html>